package com.hxj.docking.web.controller;

import com.hxj.common.core.pojo.bo.RestResult;
import com.hxj.docking.service.DockingService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author hxj
 * @Date 2024/11/19 10:58
 * @Description
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/docking")
public class DockingController {

    private final DockingService dockingService;

    @GetMapping("/start")
    public RestResult<String> startDocking() {
        dockingService.startDocking();
        return RestResult.success();
    }

}
